<?php

namespace app\index\service;
use app\index\model\Category as CategoryModel;
use think\Model;

class Category extends Model
{
	public static function getCateData()
	{
		if(cache('cateData')){
			return cache('cateData');
		}else{
			cache('cateData',CategoryModel::all(),3600);
			return cache('cateData');
		}
		
	}
}